package com.marquis.cloud.controller;

import com.marquis.cloud.utils.Const;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class IndexController {

    /**
     * 跳转到主页
     * @param request 请求
     * @return
     */
    @RequestMapping(value = "/index")
    public String index(HttpServletRequest request){
        System.out.println(request.getSession().getAttribute(Const.SESSION_USER));
        System.out.println("跳转到index.jsp");
        return "index";
    }
}
